package o;

import android.app.PendingIntent;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;

public final class apw implements Creator<ConnectionResult> {
    public final /* synthetic */ Object[] newArray(int i) {
        return new ConnectionResult[i];
    }

    public final /* synthetic */ Object createFromParcel(Parcel parcel) {
        int ˊ = SafeParcelReader.ˊ(parcel);
        PendingIntent pendingIntent = null;
        int i = 0;
        int i2 = 0;
        String str = null;
        while (parcel.dataPosition() < ˊ) {
            int ॱ = SafeParcelReader.ॱ(parcel);
            switch (SafeParcelReader.ˋ(ॱ)) {
                case 1:
                    i2 = SafeParcelReader.ˏ(parcel, ॱ);
                    break;
                case 2:
                    i = SafeParcelReader.ˏ(parcel, ॱ);
                    break;
                case 3:
                    pendingIntent = (PendingIntent) SafeParcelReader.ॱ(parcel, ॱ, PendingIntent.CREATOR);
                    break;
                case 4:
                    str = SafeParcelReader.ॱॱ(parcel, ॱ);
                    break;
                default:
                    SafeParcelReader.ˎ(parcel, ॱ);
                    break;
            }
        }
        SafeParcelReader.ͺ(parcel, ˊ);
        return new ConnectionResult(i2, i, pendingIntent, str);
    }
}
